import request from '@/utils/request'

// 查询资料上传列表
export function listZiliao(query) {
  return request({
    url: '/system/ziliao/list',
    method: 'get',
    params: query
  })
}

// 查询资料上传详细
export function getZiliao(fileId) {
  return request({
    url: '/system/ziliao/' + fileId,
    method: 'get'
  })
}

// 新增资料上传
export function addZiliao(data) {
  return request({
    url: '/system/ziliao',
    method: 'post',
    data: data
  })
}

// 修改资料上传
export function updateZiliao(data) {
  return request({
    url: '/system/ziliao',
    method: 'put',
    data: data
  })
}

// 删除资料上传
export function delZiliao(fileId) {
  return request({
    url: '/system/ziliao/' + fileId,
    method: 'delete'
  })
}
